package com.foruo.learn.jvisualvm;

/**
 * 监控线程
 * @author GaoYuan
 * @date 2018/5/28 上午10:31
 */
public class TestThread extends Thread{

    @Override
    public void run() {
        while (true){}
    }

    public static void main(String[] args){
        TestThread testThread1 = new TestThread();
        testThread1.setName("TestThread-1");
        testThread1.start();
        TestThread testThread2 = new TestThread();
        testThread2.setName("TestThread-2");
        testThread2.start();
    }
}
